package bean;

public class Like {
    private int id;
    private int articleId;
    private String user;

    public Like(){}
    public Like(int articleId, String user) {
        this.articleId = articleId;
        this.user = user;
    }

    public Like(int id, int articleId, String user) {
        this.id = id;
        this.articleId = articleId;
        this.user = user;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Like{" +
                "id=" + id +
                ", articleId=" + articleId +
                ", user='" + user + '\'' +
                '}';
    }
}
